package Observe;

import java.util.LinkedList;
import java.util.List;

public class NumberObServable implements Observable{
    List<Observer> observerList=new LinkedList<>();


    @Override
    public void attach(Observer observer) {
        observerList.add(observer);
    }

    @Override
    public void disconnect() {
    }

    @Override
    public void notifyChange() {
        for(Observer observer:observerList)
        {
            observer.update();
        }
    }
}
